package com.app.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.app.entity.*;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface QuestionDAO {
    public List<Question> getQuestionPager(@Param("skip") int skip, @Param("size") int size);

    public Question getQuestionById(int id);

    public int getQuestionCount();

    public int insert(Question entity);

    public int delete(int id);

    public int update(Question entity);

    public List<Question> getAllQuestion();
    
    public List<Question> getRandQuestion();
    public List<Question> getQuestionByType(String question_category);
}
